﻿Imports System.ComponentModel.DataAnnotations

Namespace Ita.ProElicere.Model

    Public Class Questionnaire
        <ScaffoldColumn(False)> _
        Public Property QuestionnaireID() As Integer

        Public Property ProjectID() As System.Nullable(Of Integer)
        Public Overridable Property Project() As Project

        <Required(ErrorMessage:="The author is required"), StringLength(100), Display(Name:="Author")> _
        Public Property Author() As String

        Public Property TargetTypeID() As System.Nullable(Of Integer)
        Public Overridable Property TargetType() As TargetType

        <Required(ErrorMessage:="The target name is required"), StringLength(100), Display(Name:="Target Name")> _
        Public Property TargetName() As String

        Public Property FaultID() As System.Nullable(Of Integer)
        Public Overridable Property Fault() As Fault

        <Required(ErrorMessage:="The definition is required"), StringLength(10000), Display(Name:="Definition")> _
        Public Property Definition() As String

        Public Property SpecializationID() As System.Nullable(Of Integer)
        Public Overridable Property Specialization() As Specialization

        Public Property RiskID() As System.Nullable(Of Integer)
        Public Overridable Property Risk() As Risk

        Public Property SeverityID() As System.Nullable(Of Integer)
        Public Overridable Property Severity() As Severity

        Public Property ProbabilityOccurrenceID() As System.Nullable(Of Integer)
        Public Overridable Property ProbabilityOccurrence() As ProbabilityOccurrence

        Public Property HazardID() As System.Nullable(Of Integer)
        Public Overridable Property Hazard() As Hazard

        <StringLength(10000), Display(Name:="Additional Information")> _
        Public Property AdditionalInformation() As String

        Public Property TechniqueID() As System.Nullable(Of Integer)
        Public Overridable Property Technique() As Technique

    End Class
End Namespace
